﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 字典表
/// </summary>
public partial class Dictionary
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int DId { get; set; }

    /// <summary>
    /// c,r,u-值
    /// </summary>
    public string DValue { get; set; } = null!;

    /// <summary>
    /// c,r-字典类别
    /// </summary>
    public int DDictionaryTypeId { get; set; }

    /// <summary>
    /// c,r-父级节点
    /// </summary>
    public int? DParentId { get; set; }

    /// <summary>
    /// r-创建时间
    /// </summary>
    public DateTime DCreateTime { get; set; }

    /// <summary>
    /// r-修改时间
    /// </summary>
    public DateTime? DUpdateTime { get; set; }

    public virtual DictionaryType DDictionaryType { get; set; } = null!;

    public virtual Dictionary? DParent { get; set; }

    public virtual ICollection<Good> Goods { get; set; } = new List<Good>();

    public virtual ICollection<Dictionary> InverseDParent { get; set; } = new List<Dictionary>();

    public virtual ICollection<OrderDetail> OrderDetails { get; set; } = new List<OrderDetail>();

    public virtual ICollection<Supplier> Suppliers { get; set; } = new List<Supplier>();
}
